package com.tledu.production.service.people.impl;

import com.tledu.production.mapper.people.EmployeeMapper;
import com.tledu.production.model.people.Department;
import com.tledu.production.model.people.Employee;
import com.tledu.production.service.people.IEmployeeService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Antg
 * @date 2021/8/17  11:11
 */
@Service
@AllArgsConstructor
public class EmployeeService implements IEmployeeService {
    private EmployeeMapper employeeMapper;

    @Override
    public List<Employee> findAll() {
        return employeeMapper.findAll();
    }

    @Override
    public List<Employee> search(String type, String searchText) {
        return employeeMapper.search(type, searchText);
    }

    @Override
    public int add(Employee employee) {
        return employeeMapper.add(employee);
    }

    @Override
    public int edit(Employee employee) {
        return employeeMapper.edit(employee);
    }

    @Override
    public int batchDel(String[] ids) {
        return employeeMapper.batchDel(ids);
    }
}
